package com.ahies.cart.controller;

import com.ahies.base.BaseController;
import com.ahies.cart.service.CartService;
import com.ahies.pojo.execute.Execute;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther: Mr.Yu
 * @Date: 2020/12/02
 * @Description:
 */
@RestController
public class CartController extends BaseController {

    @Autowired
    private CartService cartService;


    @RequestMapping("/list")
    public List<Execute> list(){
        return cartService.list();
    }

}
